feat(billing): use credit product title as overdraft invoice line item name#1753
feat(billing): use credit product title as overdraft invoice line item name#1753rohilsurana wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Coverage Report for CI Build 29261425709Coverage increased (+0.005%) to 44.881%Details
Uncovered Changes
Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
What this changes
The monthly credit overdraft invoice shows a hardcoded line item text: "Credit Overdraft".
This PR changes it to use the title of the configured credit overdraft product. If the title is empty, it falls back to "Credit Overdraft" as before.
Why
The finance team wants a proper service description on the invoice line. The token purchase invoice already prints the product title (Stripe uses the product name as the line text). With this change, the overdraft invoice reads from the same field. Operators can then set the wording once, in the product config.
How it works
Initalready loads the overdraft product for its price. It now also stores the product title.GenerateForCreditsuses that title as the invoice item name.CreateInProvider.Notes
Deploy order
A downstream consumer matches invoice line names against the literal string "Credit Overdraft", so it must be updated first: